type github.com/jinzhu/inflection.inflection
22 uses
github.com/jinzhu/inflection (current package)
inflections.go#L31: type inflection struct {
inflections.go#L121: var compiledPluralMaps []inflection
inflections.go#L122: var compiledSingularMaps []inflection
inflections.go#L125: compiledPluralMaps = []inflection{}
inflections.go#L126: compiledSingularMaps = []inflection{}
inflections.go#L128: inf := inflection{
inflections.go#L137: infs := []inflection{
inflections.go#L138: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.singular) + "$"), replace: strings.ToUpper(value.plural)},
inflections.go#L139: inflection{regexp: regexp.MustCompile(strings.Title(value.singular) + "$"), replace: strings.Title(value.plural)},
inflections.go#L140: inflection{regexp: regexp.MustCompile(value.singular + "$"), replace: value.plural},
inflections.go#L146: infs := []inflection{
inflections.go#L147: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.plural) + "$"), replace: strings.ToUpper(value.singular)},
inflections.go#L148: inflection{regexp: regexp.MustCompile(strings.Title(value.plural) + "$"), replace: strings.Title(value.singular)},
inflections.go#L149: inflection{regexp: regexp.MustCompile(value.plural + "$"), replace: value.singular},
inflections.go#L156: infs := []inflection{
inflections.go#L157: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.find)), replace: strings.ToUpper(value.replace)},
inflections.go#L158: inflection{regexp: regexp.MustCompile(value.find), replace: value.replace},
inflections.go#L159: inflection{regexp: regexp.MustCompile("(?i)" + value.find), replace: value.replace},
inflections.go#L166: infs := []inflection{
inflections.go#L167: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.find)), replace: strings.ToUpper(value.replace)},
inflections.go#L168: inflection{regexp: regexp.MustCompile(value.find), replace: value.replace},
inflections.go#L169: inflection{regexp: regexp.MustCompile("(?i)" + value.find), replace: value.replace},